﻿#include "Application.h"


INT APIENTRY wWinMain(
    _In_ HINSTANCE,
    _In_opt_ HINSTANCE,
    _In_ LPWSTR,
    _In_ INT)
{
	try {
		Application{}.Run();
	}
	catch (const CException& e) {
		MessageBox(nullptr, e.what(), "自我异常", MB_OK | MB_ICONWARNING);
	}
	catch (const std::exception& e) {
		MessageBox(nullptr, e.what(), "标准异常", MB_OK | MB_ICONWARNING);
	}
	catch (...) {
		MessageBox(nullptr, "爱白菜的小昆虫", "未知异常", MB_OK | MB_ICONWARNING);
	}

    return 0;
}
